<div class="row2" >
    <div class="">
        <h1>
            <small>                
                <i class="fi-list" style="font-size: 35px; padding-right: 10px; margin-left: 10px;"></i><span style="vertical-align: 6px;">Consulta de Contratos</span>
            </small>
        </h1>
    </div>   


    <table width="100%"  class="table table-bordered table-hover" border="1px" cellspacing="0" cellpadding="0">

        <thead>
            <tr>
                <td width="5%" bgcolor="#f0f0f0"><center>Id</center></td>
                <td width="20%" bgcolor="#f0f0f0"><center>Nome do Contrato</center></td>
                <td width="20%" bgcolor="#f0f0f0"><center>Responsavel</center></td>
                <td width="10%" bgcolor="#f0f0f0"><center>Quantidade de Empresas</center></td>
                <td width="10%" bgcolor="#f0f0f0"><center>Início</center></td>
                <td width="15%" bgcolor="#f0f0f0"><center>Fim</center></td>
                <td width="8%" bgcolor="#f0f0f0"><center>Ação</center></td>
            </tr>
        </thead>

        <?php
        foreach ($contratos as $c) {
            ?>
            <tr>
                <td><center><?php echo $c->contratos_id ?></center></td>
                <td><center><?php echo $c->contratos_nomeContrato ?></center></td>
                <td><center><?php echo $c->contratos_responsavel ?></center></td>
                <td><center><?php echo $c->contratos_qtdPessoas ?></center></td>
    <td><center><?php echo data_mostra_usa($c->contratos_dataInicio); ?></center></td>
                <td><center><?php echo data_mostra_usa($c->contratos_dataFim); ?></center></td>
                <td>
            <center>
                <a class="medium" style="color: #000; font-size: 25px;"   title="Editar" href="<?php echo base_url('index.php/contratos?contratos_id=' . $c->contratos_id) ?>"><i class="fi-page-edit"></i></a>
            </center>
            </td>
            </tr>  
        <?php } ?>

    </table>
</div>